<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Profile_model extends CI_Model {

	function get_band_info($id)
	{
		$band = $this->db->get_where('tb_mas_bands',array('intID'=>$id))->result_array();
		return current($band);
	}
	
	function get_band_members($id)
	{
		return $this->db->get_where('tb_mas_members',array('fk-tb_mas_bands'=>$id))->result_array();
		
	}

	function save_video($data)
	{
		$this->db
			 ->where('intID',$data['intID'])
			 ->update('tb_mas_bands',$data);
	}
}

